
<div class="box-inner" >
	<div class="box-color-img" style="margin:0.5rem 1rem;">
		<img width="{$P.width*139/375}px" height="{$P.width*104/375}px" src="{ $T.list[$T.index].image}" />
		<div class="box-color-img-div">
			<div class="box-color-img-div-name">{ $T.product.name}</div>
			<div class="box-color-img-div-p">
				<span class="box-color-img-div-price"><span style='font-size: 1.7rem;'>¥ </span>{ $T.list[$T.index].price}</span>
				<span class="box-color-img-div-kucui">库存：<span style="color:#333333">{ $T.list[$T.index].stock}</span></span>
			</div>
		</div>
	</div>
	<div style="color:#666;margin:0.5rem 1rem;font-size:1.4rem;">规格 :</div>
	<ul style="width: 100%;display: inline-block;    margin-left: 1rem">
		 {#foreach $T.list as r}
		<li style="float: left;width: 40%;height: auto;">
   			<button style="    width: 10.517rem;;height: 2.58rem;" {#if $T.r$index == $T.index} class="button_select" {#else} class="button_unselect" {#/if} onclick="changeSelected({$T.r$index})">{$T.r.name}</button>
   		</li>
   		{#/for}
	</ul>
	<div style="background: #E6E6E6;height: 1px;margin:0.5rem 1rem;"></div>
	
	<div style="margin-top:9rem;width: 100%;margin:0.5rem 1rem;">
		<ul class="btn-numbox" style="margin: 1.33rem 0 0 0rem;">
        <li>
            <ul class="count">
                <li><span id="num-jia" class="num-jia" onclick="changeCut(1)" style="border-top-right-radius: 0.6rem;border-bottom-right-radius: 0.6rem;">+</span></li>
                <li><input style="height: auto;" type="text" class="input-num" id="input-num" value="{[$T.cnt]}"/></li>
                <li><span id="num-jian" class="num-jian" onclick="changeCut(2)" style="border-top-left-radius: 0.6rem;border-bottom-left-radius: 0.6rem;">-</span></li>
            </ul>
        </li>
        <li style="float:left;">
        	<span class="number" style="color:#666;margin:0rem 0rem;font-size:1.4rem;">数量</span>
        </li>
　　　  </ul>
	</div>
	
	<div style="color: #666;
    margin: 0rem 1rem;
    font-size: 1.4rem;
    width: 100%;
    display: inline-block;
    margin-bottom: 6rem;">
		<span style="float: left;
    margin-top: 0.76rem;
    margin-right: 2rem;">共计</span>
		<span class="price"><span style='font-size: 1.7rem;'>¥ </span>{ $T.list[$T.index].price*$T.cnt}</span>
	</div>
	
	<div id="confrim_button" onclick="confirm({ $T.list[$T.index].id},{[$T.cnt]},'{ $T.list[$T.index].name}')">确定</div>
</div> 

